package com.spark.test.section02

/**
  * Created by arnold.zhu on 7/7/2017.
  */
class Liquor(name: String) {

  def mix(rho: Liquor): String = {
    // 方法的最后一条表达式 即为返回值
    this.name + " and " + rho.getName
  }

  def getName(): String = {
    this.name
  }
}
